<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MiXiM: D:/Projects/MiXiM/extsrc/mixim/src/base/phyLayer/MacToPhyInterface.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MiXiM
   &#160;<span id="projectnumber">2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00295.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">MacToPhyInterface.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef MACTOPHYINTERFACE_H_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define MACTOPHYINTERFACE_H_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;omnetpp.h&gt;</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="preprocessor">#include &quot;MiXiMDefs.h&quot;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &quot;Signal_.h&quot;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;ChannelState.h&quot;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;PhyUtils.h&quot;</span>
<a name="l00010"></a>00010 
<a name="l00017"></a><a class="code" href="a00134.html">00017</a> <span class="keyword">class </span>MIXIM_API <a class="code" href="a00134.html" title="Defines the methods provided by the phy to the mac layer.">MacToPhyInterface</a>
<a name="l00018"></a>00018 {
<a name="l00019"></a>00019 <span class="keyword">public</span>:
<a name="l00026"></a><a class="code" href="a00134.html#a36bc50a86bf1cc0f9efd374613d61a52">00026</a>   <span class="keyword">enum</span> <a class="code" href="a00134.html#a36bc50a86bf1cc0f9efd374613d61a52" title="Message kinds used by every phy layer.">BasePhyMessageKinds</a> {
<a name="l00028"></a><a class="code" href="a00134.html#a36bc50a86bf1cc0f9efd374613d61a52ab00e54021af4a33a84ac61a7543c7528">00028</a>     TX_OVER = 22000,
<a name="l00030"></a><a class="code" href="a00134.html#a36bc50a86bf1cc0f9efd374613d61a52a876c7366bd2bcb675b41e60007831d06">00030</a>     <a class="code" href="a00134.html#a36bc50a86bf1cc0f9efd374613d61a52a876c7366bd2bcb675b41e60007831d06" title="Indicates the end of a radio switch.">RADIO_SWITCHING_OVER</a>,
<a name="l00032"></a><a class="code" href="a00134.html#a36bc50a86bf1cc0f9efd374613d61a52aa6ff58f5815b155504d37339ee5c7222">00032</a>     <a class="code" href="a00134.html#a36bc50a86bf1cc0f9efd374613d61a52aa6ff58f5815b155504d37339ee5c7222" title="Channel sense control message between Mac and Phy.">CHANNEL_SENSE_REQUEST</a>,
<a name="l00034"></a><a class="code" href="a00134.html#a36bc50a86bf1cc0f9efd374613d61a52a96eafe94b4f472727793a10013af7671">00034</a>     <a class="code" href="a00134.html#a36bc50a86bf1cc0f9efd374613d61a52a96eafe94b4f472727793a10013af7671" title="AirFrame kind.">AIR_FRAME</a>,
<a name="l00037"></a><a class="code" href="a00134.html#a36bc50a86bf1cc0f9efd374613d61a52a25b918f3c2f7bd926610b544bc78497a">00037</a>     <a class="code" href="a00134.html#a36bc50a86bf1cc0f9efd374613d61a52a25b918f3c2f7bd926610b544bc78497a" title="Stores the id on which classes extending BasePhy should continue their own kinds.">LAST_BASE_PHY_KIND</a>,
<a name="l00038"></a>00038   };
<a name="l00039"></a>00039 
<a name="l00040"></a>00040 <span class="keyword">public</span>:
<a name="l00041"></a>00041 
<a name="l00042"></a>00042   <span class="keyword">virtual</span> ~<a class="code" href="a00134.html" title="Defines the methods provided by the phy to the mac layer.">MacToPhyInterface</a>() {}
<a name="l00052"></a>00052   <span class="keyword">virtual</span> <span class="keywordtype">int</span> getRadioState() <span class="keyword">const</span> = 0;
<a name="l00053"></a>00053 
<a name="l00066"></a>00066   <span class="keyword">virtual</span> simtime_t setRadioState(<span class="keywordtype">int</span> rs) = 0;
<a name="l00067"></a>00067 
<a name="l00075"></a>00075   <span class="keyword">virtual</span> <a class="code" href="a00044.html" title="Provides information about the current state of the channel:">ChannelState</a> getChannelState() <span class="keyword">const</span> = 0;
<a name="l00076"></a>00076 
<a name="l00085"></a>00085   <span class="keyword">virtual</span> <span class="keywordtype">long</span> getPhyHeaderLength() <span class="keyword">const</span> = 0;
<a name="l00086"></a>00086 
<a name="l00088"></a>00088   <span class="keyword">virtual</span> <span class="keywordtype">void</span> setCurrentRadioChannel(<span class="keywordtype">int</span> newRadioChannel) = 0;
<a name="l00089"></a>00089 
<a name="l00091"></a>00091   <span class="keyword">virtual</span> <span class="keywordtype">int</span> getCurrentRadioChannel() <span class="keyword">const</span> = 0;
<a name="l00092"></a>00092 
<a name="l00094"></a>00094   <span class="keyword">virtual</span> <span class="keywordtype">int</span> getNbRadioChannels() <span class="keyword">const</span> = 0;
<a name="l00095"></a>00095 };
<a name="l00096"></a>00096 
<a name="l00097"></a>00097 <span class="preprocessor">#endif </span><span class="comment">/*MACTOPHYINTERFACE_H_*/</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>MacToPhyInterface.h</b>      </li>

    <li class="footer">Generated on Tue Mar 5 2013 21:26:30 for MiXiM by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
